from exams.models import Exam
from exams.models import Question, Answer, User, TakenExam
from django.contrib import admin

admin.site.register(Exam)
admin.site.register(Question)
admin.site.register(Answer)
#admin.site.register(User)
admin.site.register(TakenExam)

"""
class QuestionInline(admin.StackedInline):
	model = Question
	extra = 1

class ExamAdmin(admin.ModelAdmin):
	fieldsets = [
		(None,               {'fields': ['name']}),
		('Date information', {'fields': ['date_created' , 'deadline'], 'classes': ['collapse']}),
	]
	inlines = [QuestionInline]
	list_display = ('name', 'date_created', 'created_today')
	list_filter = ['date_created']
	search_fields = ['name']
	date_hierarchy = 'date_created'

admin.site.register(Exam, ExamAdmin)
"""

